<?php

namespace Kiri\GRpc;

use Grpc\ChannelCredentials;
use Swoole\Coroutine\Http2\Client;
use Swoole\Http2\Request;
use System\NotifyRequest;

class Compliter
{


	public function comp()
	{
		$data = new NotifyRequest();
		$data->setAvatar('');
		$data->setNickname('');


		$http2 = new Client('127.0.0.1', 54000, false);

		ChannelCredentials::createInsecure();

		$http2->send(new Request());


		$recv = $http2->recv();
	}


}
